<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
require '../com.swiss.mooh.dao.impl/DescriptionDaoImpl.php';
require '../com.swiss.mooh.service/DescriptionServiceImpl.php';

$dispatcher = new DescriptionDaoImpl();
$descService = new DescriptionServiceImpl($dispatcher);


$resultVO = $descService->getProductDescriptionByID($_POST['descID']);

$resultArray = array('PAGE_TYPE' => $resultVO->getPageType(), 'DESC_ID' => $resultVO->getDescID(), 'MENU_ID' => $resultVO->getMenuID(), 'DESC_NAME' => $resultVO->getDescName(), 'DESC_DESC' => $resultVO->getDescDetail());
echo json_encode($resultArray);
